package com.jdls.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author 嘉德罗斯
 * @date 2021/9/15
 */
//这是一个配置类
@Configuration
//扫描包 service
@ComponentScan({"com.jdls.service"})
//扫描配置文件
@PropertySource("classpath:jdbc.properties")
//加载mybatis整合的配置类
@Import({MybatisConfig.class,JdbcConfig.class})
//开启事务
@EnableTransactionManagement
public class SpringConfig {
}
